//
//  HXDFamousView.m
//  qingDaoCircleOfLife
//
//  Created by huxuedong on 15/11/26.
//  Copyright © 2015年 huxuedong. All rights reserved.
//

#import "HXDFamousCell.h"

@interface HXDFamousCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *starImage;
@property (weak, nonatomic) IBOutlet UILabel *introLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;

@end

@implementation HXDFamousCell

- (void)setFamousData:(NSDictionary *)famousData {
    _famousData = famousData;
    self.titleLabel.text = [famousData objectForKey:@"famousName"];
    self.introLabel.text = [famousData objectForKey:@"famousIntro"];
    UIImage *icomImage = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[famousData objectForKey:@"famousCover"]]]];
    self.iconImage.image = icomImage;
    UIImage *starImage = [UIImage imageNamed:[NSString stringWithFormat:@"star_%@",[famousData objectForKey:@"famousScore"]]];
    self.starImage.image = starImage;
}

@end
